<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mongodb.installation.manual.html">« Building the MongoDB PHP Driver from source</a></li>
      <li style="float: right;"><a href="mongodb.constants.html">预定义常量 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="mongodb.setup.html">安装/配置</a></li>
    <li>运行时配置</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="mongodb.configuration" class="article">
 <h1>运行时配置</h1>

 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>mongodb 配置选项</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="mongodb.configuration.html#ini.mongodb.debug" class="link">mongodb.debug</a></td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_ALL</td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

 </p>

 <p class="para">这是配置指令的简短说明。</p>

 <p class="para">
  <dl>
   
     <dt id="ini.mongodb.debug">
      <code class="parameter">mongodb.debug</code>
      <span class="type">string</span>
     </dt>

     <dd>

      <p class="para">
       This option can be used to enable or disable trace-level debug logging in
       the driver (and libmongoc).
      </p>
      <p class="para">
       Specify an empty string, <code class="literal">&quot;0&quot;</code>,
       <code class="literal">&quot;off&quot;</code>, <code class="literal">&quot;no&quot;</code>, or
       <code class="literal">&quot;false&quot;</code> to disable logging.
      </p>
      <p class="para">
       Specify <code class="literal">&quot;stderr&quot;</code> or <code class="literal">&quot;stdout&quot;</code> to log
       to <code class="literal">stderr</code> or <code class="literal">stdout</code>, respectively.
      </p>
      <p class="para">
       Specify <code class="literal">&quot;1&quot;</code>, <code class="literal">&quot;on&quot;</code>,
       <code class="literal">&quot;yes&quot;</code>, or <code class="literal">&quot;true&quot;</code> to log to a new
       temporary file within the default system temp directory (i.e.
       <span class="function"><a href="function.sys-get-temp-dir.html" class="function">sys_get_temp_dir()</a></span>).
      </p>
      <p class="para">
       Specify any other string to log to a new temporary file within that
       directory. If the directory cannot be used, the default system temp
       directory will be used instead.
      </p>
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <p class="para">
        Please note that the debug log can contain sensitive information, such
        as credentials to the MongoDB server and full documents written to or
        read from the server. Please review any debug logs before sharing them
        with other people.
       </p>
      </p></blockquote>
     </dd>

    
  </dl>

 </p>
</div>
</div></div></body></html>